﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Security.Cryptography;

namespace KCL.Code.Data
{
    public static class Encryptor
    {
        public static string HashMD5(string inputString)
        {
            UTF32Encoding u = new UTF32Encoding();
            byte[] bytes = u.GetBytes(inputString);
            MD5 md = new MD5CryptoServiceProvider();
            byte[] result = md.ComputeHash(bytes);
            return Convert.ToBase64String(result);
        }
    }
}